home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Filing / s / File20 < prev    next >
Text File  |  1995-08-26  |  2KB  |  55 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Filing.s.File20
  11. ;   Author:  Copyright © 1994, 1995 Sergio Monesi
  12. ;   Version: 1.01 (6 Jun 1995)
  13. ;   Purpose: Read catalogue information
  14. ;   Mods:    6 June 1995 - changed procedure name to a more
  15. ;                          DeskLib-compliant style
  16.  
  17.         GET     ^.h.regdefs
  18.         GET     ^.h.swinos
  19.         GET     ^.h.macros
  20.  
  21. ; os_error *Filing_ReadCatalogue(char *filename, filing_objtype *objtype,
  22. ;                                int *loadaddr, int *execaddr, int *length,
  23. ;                                int *attrib, int *filetype);
  24.  
  25.         PREAMBLE
  26.         STARTCODE Filing_ReadCatalogue
  27. ;
  28.         STMFD   sp!, {r1-r6,lr}
  29.         MOV     r1, r0
  30.         MOV     r0, #20
  31.         SWI     SWI_OS_File + XOS_Bit
  32.         LDMVSFD sp!, {r1-r6,pc}^
  33.         LDR     lr, [sp]
  34.         TEQ     lr, #0
  35.         STRNE   r0, [lr]
  36.         LDR     lr, [sp, #4]
  37.         TEQ     lr ,#0
  38.         STRNE   r2, [lr]
  39.         LDR     lr, [sp, #8]
  40.         TEQ     lr, #0
  41.         STRNE   r3, [lr]
  42.         LDR     lr, [sp ,#28]
  43.         TEQ     lr, #0
  44.         STRNE   r4, [lr]
  45.         LDR     lr, [sp ,#32]
  46.         TEQ     lr, #0
  47.         STRNE   r5, [lr]
  48.         LDR     lr, [sp ,#36]
  49.         TEQ     lr, #0
  50.         STRNE   r6, [lr]
  51.         MOV     r0,#0
  52.         LDMFD   sp!, {r1-r6,pc}^
  53. ;
  54.         END
  55.